package com.dq.usercenter.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @project: guli_parent
 * @ClassName: WxProperties
 * @author: dq
 * @creat: 2022/8/10 16:10
 */
@Configuration
@ConfigurationProperties(prefix = "wx.open")
@PropertySource("classpath:application.yml")
@Data
public class WxProperties {
/*
  app_id: wxed9954c01bb89b47
# 微信开放平台 appsecret
  app_secret: a7482517235173ddb4083788de60b90e
# 微信开放平台 重定向url
  redirect_url: http://localhost:8006/api/ucenter/wx/callback
 */

    private String appId;
    private String appSecret;
    private String redirectUrl;
}
